package com.dfrobot.demo.domain.entity;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

@Data
@Table(name = "coupon")
public class Coupon {
    @Id
    @Column(name = "coupon_id")
    private Integer couponId;

    private String name;

    private String code;

    private String type;

    private BigDecimal discount;

    private Boolean logged;

    private Boolean shipping;

    private BigDecimal total;

    @Column(name = "date_start")
    private Date dateStart;

    @Column(name = "date_end")
    private Date dateEnd;

    @Column(name = "uses_total")
    private Integer usesTotal;

    @Column(name = "uses_customer")
    private String usesCustomer;

    private Boolean status;

    @Column(name = "date_added")
    private Date dateAdded;

    /**
     * 是否显示在结算页
     */
    @Column(name = "checkout_status")
    private Integer checkoutStatus;
}